<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.d1{
				width: 100px;
				height: 100px;
				border:solid 1px red;
			}
		</style>
	</head>
	<body>
		<div class="d1"></div>
		<script type="text/javascript">
			
			var d1 = document.querySelector(".d1");
			
			d1.onclick = function(e){
				debugger
				console.log(e);
				console.log(d1.onclick);
				console.log(window.event);
			}
		</script>
	</body>
</html>
